<!DOCTYPE html>
<html lang="en">

<head>
  <meta charset="UTF-8">
  <meta http-equiv="X-UA-Compatible" content="IE=edge">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <title>Document</title>
</head>

<body>
  <script>
    function Person(uname, age) {
      this.uname = uname,
        this.age = age
    }
    Person.prototype.sing = function () {
      console.log('唱歌');
    }
    const ldh = new Person('刘德华', 23)
    const zxy = new Person('张学友', 48)
    // ldh.sing()
    console.log(ldh.sing === zxy.sing);
  </script>
</body>

</html>